package org.misty.redis.autoconfigure.filter;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.misty.redis.bloomfilter.IFilterConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;

import static org.misty.redis.autoconfigure.filter.FilterConstants.REDIS_KEY_PREFIX;

/**
 * @author Misty on 2020-06-10
 */
@Getter
@Setter
@ToString
@ConfigurationProperties(prefix = "redis-tools.filter.default")
public class DefaultFilterProperties implements IFilterConfig {
    /**
     * 期望元素个数
     */
    private Long expectedInsertions;
    /**
     * 假阳性率
     */
    private Double fpp;
    /**
     * redis中所使用的key
     */
    private String redisKey = REDIS_KEY_PREFIX + "default";
}
